package com.ch.home.mapper.restDishMapper;

import com.ch.home.bean.Dish;
import com.ch.home.bean.DishAndSources;
import org.mybatis.spring.annotation.MapperScan;

import java.util.LinkedList;

/**
 * 菜品基本信息
 * Created by CHEN on 2019/8/26.
 */
public interface DishMapper {


    /**
     * 查询信息
     * @param dish
     * @return
     */
    LinkedList<Dish> getDish(Dish dish);

    /**
     *
     * @param dish
     * @return
     */
    LinkedList<DishAndSources> getDishAndSource(Dish dish);

    /**
     * 新增Dish
     * @param dish
     * @return
     */
    int addDish(Dish dish);

    /**
     * 更新Dish
     * @param dish
     * @return
     */
    int updateDish(Dish dish);


}
